package cn.sundat.service;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import cn.sundat.model.Company;
import cn.sundat.model.PageBean;

public interface CompanyService {
	public void save(Company company);
	public Company getById(Long id);
	public int checkLogin(String username,String password);
	public List<Company> login(String comp_name, String comp_pwd);
	public void update(Company company);
	public Company getByName(String comp_name);
	public List<Company> listCompany();
	public void delById(Long id);
	public List<Company> findCompanyByKey(String key,String value);
	public List<Company> auditList();
	List<Company> findCompanyById(Long id);
	public PageBean<Company> findByLevel(int currPage, Integer pageSize, int level);
	public Company findById(Long comp_id);
	public void regApprove(Long id);
	public PageBean<Company> findPbByName(Integer currPage, Integer pageSize, DetachedCriteria criteria);
	public void ApproveUpdateLevel(Long id,Integer nextLevel);
	public List<Company> updateLevelList();
}
